package com.wwj.airline.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.sql.Timestamp;

@Data
public class Flight {
    private Long id;

    private Long airwayId;//公司
    private Long routerId;//路线
    private String airwayName;//公司名称
    private String fromCity;//城市名字
    private String toCity;//城市名字
//    private AirWay airWay;
//    private Router router;
//    private City fromCity;
//    private City toCity;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp fromTime;//出发时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp toTime;//到达时间
}

/*"airway.id":1
        "airway.airwayName":南方航空
        "router.id":1
        "router.fromCityId":1
        "router.toCityId":2
        "fromCity.id":1
        "fromCity.city":广州
        "toCity.id":2
        "toCity.city":北京
        "fromTime":2020-06-04 11:32:00
        "toTime":2020-06-05 11:32:00*/
